package com.study.controller;

import com.study.core.resp.Resp;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/study-app")
public class HealthController {

    @GetMapping("health")
    public Resp health(HttpServletRequest request) {
        String token = request.getHeader("x_auth_token");
        System.out.println("token: "+token);
        return Resp.ok();
    }
}
